package com.zero.logistics.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zero.logistics.mapper.PermissionMapper;
import com.zero.logistics.pojo.Permission;
import com.zero.logistics.pojo.PermissionExample;
import com.zero.logistics.service.PermissionService;

/*
 *	@date:2020年3月30日 下午7:38:14
 *	@author:Zero
 *	@version:Future
 *	@description: 
 *
 */
@Service
public class PermissionServiceImpl implements PermissionService {
	
	@Autowired
	private PermissionMapper permisssionMapper;

	@Override
	public int deleteByPrimaryKey(Long permisssionId) {
		return permisssionMapper.deleteByPrimaryKey(permisssionId);
	}

	@Override
	public int insert(Permission record) {
		return permisssionMapper.insert(record);
	}

	@Override
	public List<Permission> selectByExample(PermissionExample example) {
		return permisssionMapper.selectByExample(example);
	}

	@Override
	public Permission selectByPrimaryKey(Long permisssionId) {
		return permisssionMapper.selectByPrimaryKey(permisssionId);
	}

	@Override
	public int updateByPrimaryKeySelective(Permission record) {
		return permisssionMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int deleteByIds(String[] ids) {
		return permisssionMapper.deleteByIds(ids);
	}

	@Override
	public List<String> getExpressionsByPermissionIds(String[] permissionIdsArr) {
		return permisssionMapper.getExpressionsByPermissionIds(permissionIdsArr);
	}

}
